package com.sx.pipeline.repos.local.db.table

import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import java.io.Serializable

/**
 * @Author: YY
 * @Date: 2022/8/10
 * @Desc: 数据表
 */
@TypeConverters(FileNodesBeanConverter::class)
@Entity(tableName = "PipeFileBeanDO")
data class PipeFileBeanDO(
    @PrimaryKey(autoGenerate = true)
    val id: Int = 0,
    val userId: String,
    val fileName: String,
    val fileType: Int,
    val fileNodesBeanDO: List<FileNodesBeanDO>?
) : Serializable

@Entity
data class FileNodesBeanDO(
    val type: Int,
    val longitude: Double,
    val latitude: Double
) : Serializable